package org.willthink.service.notice.impl;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.willthink.dao.notice.NoticeDAO;
import org.willthink.service.notice.NoticeService;
import org.willthink.vo.notice.NoticeFormVO;
import org.willthink.vo.notice.NoticeVO;

public class NoticeServiceImpl implements NoticeService {

	private NoticeDAO dao;
	
	public void setDao(NoticeDAO dao) {
		this.dao = dao;
	}

	@Override
	public List<Map<String, String>> getNoticeList(String pageNo) throws SQLException {
		
		return dao.getNoticeList(pageNo);
	}

	@Override
	public void insertNotice(NoticeFormVO vo) throws SQLException {
		dao.insertNotice(vo);
	}

}
